'use strict';
define(['app','HomeViewController','homeEvent'], function(app,HomeViewController,homeEventExtend)
{
    var ContactViewController = HomeViewController.extend({

        //声明要继承的控制器事件和是否继承事件
        inherited: {
            //是否继承
            isExtend: true, //是否继承事件
            //继承的事件对象
            name: homeEventExtend  //声明要继承的控制器事件
        },

        _data: 'Contact Us',

        //需要声明和home一样的服务

        init:function($scope,$timeout,Notifications){
            //TODO:需要声明homeEvent的服务
            this.setTimeout = $timeout;

            this._super($scope);

            $scope.page =
            {
                heading: this._data
            };
            //控制器继承
            $scope.homeExtend = this.$scope.extend;
        },

        defineListeners:function($scope){

        },

        defineScope:function(){

        },

        destroy:function(){

        }
    });

    (function(){
        ContactViewController.$inject = ['$scope','$timeout','Notifications'];
        app.controller('ContactViewController',function($scope,$timeout,Notifications){
            new ContactViewController($scope,$timeout,Notifications);
        });
    })();

});
